import java.util.EventObject;

public class MyEventObject extends EventObject {

	private String eventName ;
	
	public MyEventObject (Object source, String eventName) {
		
		super(source);
		this.setEventName(eventName);
	}


/*	public class MyEventListenerImpl implements MyEventListener {

		@Override
		public void myEvent(MyEventObject eventObject) {

			System.out.println("MyEventListenerImpl --- " + eventObject.getEventName());
		}
	}*/
//getEventName(被Listener的方法调用
	public String getEventName() {
		return eventName;
	}

	public void setEventName(String eventName) {
		this.eventName = eventName;
	}

	private static final long serialVersionUID = 8374250957018011175L;
}